using System.Collections;

namespace CSharpPro._1028;

public class Demo
{
    public void TestPrint()
    {
        ArrayList arrayList = new ArrayList();
        arrayList.Add(1);
        arrayList.Add(1.5);
        arrayList.Add("2");
        foreach (int i in arrayList)
        {
            Console.Write(i+"\t");
        }

        List<int> list = new List<int>();
        list.Add(1);
        list.Add(2);
       // list.Add(3.5);//实参类型“double”不可分配给形参类型“int”

        List<Student> students = new List<Student>();
            students.Add(new Student());
            students.Add(new Student());
            students.Add(new Student());
            students.Add(new Student());
            // students.Add(new User()); 
        Dictionary<string, object> dict = new Dictionary<string, object>();
        //Hashtable hashtable = new Hashtable();

        Stack<int> stack = new Stack<int>();
        Stack<Student> stack2 = new Stack<Student>();




    }
    
}